package com.logic.sysHandler;

import org.apache.log4j.Logger;

import com.google.gson.JsonObject;

import utl.mofen.dbHandler.DBBaseHandler;
import utl.mofen.delphi.cds.Util;



public class ImageResHandler extends DBBaseHandler {
	private final Logger logger = Logger.getLogger(this.getClass());
	public void doAction() throws Exception {		
		String s = Util.getXMLData(sysDbOpera.queryData("SELECT FKey as __key, FCaption, FData as __image FROM sys_ResList WHERE FKind = 1 ORDER BY FCaption"));
		byte[] data = s.getBytes("utf-8");
		logger.info("返回图像资源放入data中长度:"+data.length);
		resultKeyStream.add("data", s.getBytes("utf-8"));
	}
}